<template>
  <div id="app">
    <keep-alive>
      <router-view v-if="keepAlive" />
    </keep-alive>
    <router-view v-if="!keepAlive" />
  </div>
</template>

<script>
import { mapGetters } from "vuex";
export default {
  name: "RouteView",
  components: {},
  computed: {
    ...mapGetters(["isLogin"]),
    keepAlive() {
      return this.$route.meta.keepAlive;
    },
  },
  watch: {
  },
};
</script>
<style lang="less" scoped>
body,
html {
  width: 100%;
  height: 100%;
}
#app {
  width: 100%;
  min-width: 1200px;
}
</style>


